<?php get_header(); ?>

<div id="pitch">
<strong>380lbs</strong> when he started walking across the country from <a href="/categories/south-carolina/myrtle-beach/">Myrtle Beach, SC</a> to San Francisco, CA and Jason's lost over 40lbs walking 220 miles in the past <?php echo time_since_start(); ?>.
</div>

<div id="mainContent">
	<div class="topTear"></div>

	<div id="content" class="narrowcolumn">
	<?php if (have_posts()) : ?>
		
		<? $post_counter = 0; ?>
		
		<?php while (have_posts()) : the_post(); ?>
			
			<? if($post_counter == 0) { ?>
				
			<div class="postMeta">
				<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('meta') ) : else : ?>

				<p class="categories" id="mCats">Where is Jason Right Now:<br /> <?php the_category(' ',17); ?><br style="clear: both;" /></p>
				<p></p>
				<p></p>
				<p></p>
				<? if ($post->comment_count > 0) { ?><p>Last comment was posted <?php if (function_exists('time_since')) { echo time_since(abs(strtotime(last_comment_date($post->ID) . " GMT")), time()); ?> ago <? } else { the_time('F jS, Y'); } ?></p> <? } ?>

		                <?php endif; ?>

			</div>
				
			<div class="post" id="post-<?php the_ID(); ?>">

				<h2><a class="postHeading" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				<div class="numComments"><? the_time('l, F jS, Y') ?> ... <? the_time('g:ia'); ?> by <?php the_author() ?> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>

				<div class="entry">				
					<?php the_content('Read the rest of this entry &raquo;'); ?>
				</div>
				
				<div class=""><?php comments_popup_link('Be the First To Comment &raquo;', 'Add Your Comment &raquo;', 'Add Your Comment &raquo;'); ?></div>
				
				<hr />
										
			</div>
						
			<? $post_counter++ ?>
			
			<? } else if($post_counter > 0) { ?>

			<div class="mini-post" id="post-<?php the_ID(); ?>">
				<h2><a class="postHeading" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				<div class="numComments"><? the_time('F jS') ?> ... <? the_time('g:ia'); ?> by <?php the_author() ?> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>

				<?php $use_excerpt = need_excerpt(); ?>
				<div class="entry">
					<?php if ($use_excerpt) { the_excerpt(); } else { the_content(); } ?>
				</div>
				<?php if ($use_excerpt) : ?>				
				<p><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading &raquo;</a></p>
				<?php endif; ?>
				<?php edit_post_link('<strong>Edit</strong>', '', ' '); ?>
				<p class="categories"><?php the_category(' '); ?></p>
			
			</div>
			
			<? if($post_counter % 2 == 0) { echo "<hr />"; } ?>
			<? $post_counter++ ?>
			
			<? } ?>
			
	
		<?php endwhile; ?>
		
		<hr />

                <div class="navigation">
                        <div class="alignleft"><?php next_posts_link('&laquo; Previous Weeks Entries') ?></div>
                        <div class="alignright"><?php previous_posts_link('Next Weeks Entries &raquo;') ?></div>
                </div>

		
	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>
	<div class="bottomTear"></div>
	</div>

<?php get_footer(); ?>
